package top.withu.gaof.freehope.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import top.withu.gaof.freehope.model.ArticleContent;

/**
 * @Description: 文章详情
 * @Author: gaofan
 * @Date: 2020/3/14 10:30
 * @Copyright: 2019 www.jumapeisong.com Inc. All rights reserved.
 **/
public interface ArticleContentDao extends JpaRepository<ArticleContent, String> {

    @Query(value = "select * from t_ipf_article_content where article_id = ?1 ", nativeQuery = true)
    ArticleContent findByArticleId(int articleId);
}
